<?php

namespace App\Http\Requests\App;

use App\Http\Requests\ApiRequest;

/**
 * @property int count
 */
class ProductTryOnRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'count' => 'nullable|int|min:1|max:'.self::MAX_INT
        ];
    }

    /**
     * @return array
     */
//    public function messages()
//    {
//        return [
//            'count.*' => '试戴次数必须是大于0的数字'
//        ];
//    }
}
